From: iap10@labyrinth.cl.cam.ac.uk Date: Thu, 30 Sep 2004 20:14:46 +0000 (+0000) Subject: bitkeeper revision 1.1159.97.3 (415c6936SE2JuWey2d_QmYIvVEKObw) X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~17400^2~559^2 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=8a841d2d9d00a7881f9d35ec4d426884ca7e4a60;p=xen.git bitkeeper revision 1.1159.97.3 (415c6936SE2JuWey2d_QmYIvVEKObw) Tiny time fix. --- diff --git a/linux-2.6.8.1-xen-sparse/arch/xen/i386/kernel/time.c b/linux-2.6.8.1-xen-sparse/arch/xen/i386/kernel/time.c index 83b496d338..edcc18dfd9 100644 --- a/linux-2.6.8.1-xen-sparse/arch/xen/i386/kernel/time.c +++ b/linux-2.6.8.1-xen-sparse/arch/xen/i386/kernel/time.c @@ -126,14 +126,14 @@ u64 processed_system_time; /* System time (ns) at last processing. */ (_tv).tv_sec++; \ } \ } while (0) -static inline void __normalize_time(time_t *sec, s64 *usec) +static inline void __normalize_time(time_t *sec, s64 *nsec) { - while (*usec >= NSEC_PER_SEC) { - (*usec) -= NSEC_PER_SEC; + while (*nsec >= NSEC_PER_SEC) { + (*nsec) -= NSEC_PER_SEC; (*sec)++; } - while (*usec < NSEC_PER_SEC) { - (*usec) += NSEC_PER_SEC; + while (*nsec < 0) { + (*nsec) += NSEC_PER_SEC; (*sec)--; } }